import type { AdminLoginPasswordParams, AdminLoginPasswordResult } from '@/api/model/loginModel';
import { request } from '@/utils/request';

const Api = {
  AdminLoginPassword: '/admin/login/password',
};

export function adminLogin(data: AdminLoginPasswordParams) {
  return request.post<AdminLoginPasswordResult>({
    url: Api.AdminLoginPassword,
    data,
  });
}
